const defaultState={
   playList:[] 
}

import * as actionTypes from './constance'
export default (state=defaultState,action)=>{
    switch(action.type){
        case actionTypes.SET_PLAYLIST:
            return {
                ...state,
                playList:action.data
            }
        default:
            return state
    }
}